package com.pet.shop.mappers.product;

import com.pet.shop.entity.product.ProductNorm;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface ProductNormMapper {

    int delete(Long id);

    int insert(ProductNorm record);

    ProductNorm get(Long id);

    int update(ProductNorm record);

    List<ProductNorm> queryByProductId(Long productId);

    Set<Long> queryIdByProductId(Long productId);

    List<ProductNorm> queryByProductIdList(@Param("productIds")List<Long> productIds);
}